{% extends "common/um_layout.html" %}
{% block content %}
    {% if data %}
        <table class="table table-hover" style="text-align:center">
            <thead style="text-align:center">
            <tr>
                <th style="text-align:center">Nickname</th>
                <th style="text-align:center">Loginname</th>
                <th style="text-align:center">Gneder</th>
                <th style="text-align:center">Age</th>
                <th style="text-align:center">Occupation</th>
                <th style="text-align:center">Email</th>
                <th style="text-align:center">status</th>
                <th style="text-align:center">operation</th>
            </tr>
            </thead>
            <tbody>
            {% for item in data %}
                <tr>
                    <td>{{ item.nickname }}</td>
                    <td>{{ item.login_name }}</td>
                    <td>{{ item.gender }}</td>
                    <td>{{ item.age }}</td>
                    <td>{{ item.occupation }}</td>
                    <td>{{ item.email }}</td>
                    {% if item.status == 0 %}
                        <td class="td-status">
                            <span class="label label-danger">not using</span>
                        </td>
                    {% else %}
                        <td class="td-status">
                            <span class="label label-success">using</span>
                        </td>
                    {% endif %}
                    <td>
                        <a href="{{ buildUrl('userManager/modify')~'?id='~item.id }}">
                            <span class="label label-primary">modify</span>
                        </a>
                        <a href="{{ buildUrl('userManager/delete')~'?id='~item.id }}">
                            <span class="label label-danger">delete</span>
                        </a>
                    </td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% endif %}
    {% include "common/pagenation.html" %}
{% endblock %}